<?php
class UserRelationModel extends RelationModel{
   protected $tableName='user';

   protected $_link=array(
     'role'=>array(
        'mapping_type'=>MANY_TO_MANY,
        'mapping_name'=>'role',
         'foreign_key'=>'user_id',
         "relation_foreign_key"=>'role_id',
         'relation_table'=>'role_user'
     	)

   	);

  
}



?>